/**
 * @file 环境变量
 *
 * @auth gushouchuang
 * @date 2020-7-23
 */

// const envCode = process.env.NODE_ENV_MODE || 'production'

const envCode = 'production'
// const envCode = 'test'
console.log(`环境：${envCode}`)

let envCfg = {}

if (envCode === 'test') {
    envCfg = {
        loginUrl: 'http://login-test.ciftis.org.cn/login?returnUrl=',
        selfUrl: 'http://cm-back-test.ciftis.org.cn/contract',
        fileUrl: 'http://cm-back-test.ciftis.org.cn',
        authority: 'https://cm-back-test.ciftis.org.cn/cm-np.html',
        error: 'https://navi-back-test.ciftis.org.cn/notFind.html'
    }
} else if (envCode === 'production') {
    envCfg = {
        loginUrl: 'https://login.ciftis.org/login?returnUrl=',
        selfUrl: 'https://cm-back.ciftis.org/contract',
        fileUrl: 'https://cm-back.ciftis.org',
        authority: 'https://cm-back.ciftis.org/cm-np.html',
        error: ' https://navi-back.ciftis.org/notFind.html'
    }
}

export default envCfg